﻿using Core.Log;
using System.Windows.Controls;

namespace Log.Views
{
    /// <summary>
    /// MessageView.xaml 的交互逻辑
    /// </summary>
    public partial class MessageView : UserControl
    {
        Notify notifyGIni, notifyGErr, notifyGAuto;
        public MessageView()
        {
            InitializeComponent();

            notifyGIni = NotifyCollect.NotifyContainer["Initialization"];
            notifyGErr = NotifyCollect.NotifyContainer["Error"];
            notifyGAuto = NotifyCollect.NotifyContainer["Auto"];

            //获取对象绑定界面
            notifyGIni.EventHandlerNotify += Initialization.AppendText;
            notifyGErr.EventHandlerNotify += Error.AppendText;
            notifyGAuto.EventHandlerNotify += Auto.AppendText;
        }
    }
}
